Skip to main content

size

Type

property

Summary

Reports the amount of disk space taken by an object.

Syntax

get the size of <object>

Description

Use the size property to judge how much memory an object takes when displayed.

The size of an image, EPS object, audio clip, or video clip is is the number of bytes of disk space that the object takes up.

The size property of a stack is always 10000. For stacks, this property is included in LiveCode for compatibility with imported HyperCard stacks and does not report a meaningful value.

note

The size of an image that has a filename is always empty. To get the true size of such an image, either use the detailed files, or check the length of the file url.

Examples

if the size of image myImage &gt; 20000 then beep

property: filename

function: heapSpace, hasMemory, stacks, files, diskSpace

glossary: object, property, LiveCode, audio clip, EPS, HyperCard, video clip, byte

keyword: image, integer

object: stack

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?